Fix RGB vs BGR and Normalization Mismatch Between Training and Inference in Computer Vision
Model looks fine in training but fails in production? Fix RGB/BGR channel order and mean/std normalization mismatches between PyTorch, OpenCV, and torchvision preprocessing.